package Concurrency2.Chapter06_AQS;

import java.util.concurrent.locks.AbstractQueuedSynchronizer;

/**
 * Instruction：测试AQS锁的实现
 * Author：@author MaLi
 */
public class T03_AQSLock extends AbstractQueuedSynchronizer {
    @Override
    protected boolean tryAcquire(int arg) {
        return super.tryAcquire(arg);
    }

    public static void main(String[] args) {
        T03_AQSLock lock = new T03_AQSLock();
        lock.acquire(1);

    }
}
